<?php
//Set values for page
$page_title = "Detail | Piseth Phone Shop";
$current_page = "detail";
require_once 'global.inc.php'; 

//get the user object from the session 
if (!empty($_SESSION['user'])) {
	$user = unserialize($_SESSION['user']);
}
$item_id = $_GET['product'];
$product = $GLOBALS['FE_DB']->select("items","item_id=".$item_id);


?>
<!DOCTYPE html>
<html lang="en">
	<?php include 'includes/header.php';?>
<body>
	<?php include 'includes/menu.php';?>
	<?php //include 'includes/slideshow.php';?>
	<div class="container" style="margin-top:60px;">
		<?php include 'includes/widget-login.php';?>
		<div class="row">
				<div class="detail-header span12">
					<h1>Detail</h1>
				</div>
		</div>
		<div class="row detail">
				<div class="image span3"><img src="upload/<?php echo $product['picture']?>" alt="<?php echo $product['item_name'] ?>"></div>
				<div class="detail-content span9">
					<div class="title"><?php echo $product['item_name'] ?></div>
					<div class="price">$<?php echo $product['price']?></div>
					<div class="description">
						<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
					</div>
					<div class="add-to-cart"><a href="cart.php?action=add&product=<?php echo $product['item_id'] ?>">ADD TO CART</a></div>
				</div>
		</div>
	</div>
	<?php include 'includes/footer.php';?>
	<!-- javascript -->
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.js"></script>
	</body>
</html>
